package com.campus.customer.bean.order;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Data
@ApiModel(value = "OrderSubmitBean对象", description = "订单提交参数")
public class OrderSubmitBean {

    @ApiModelProperty("商户ID")
    private Integer merchantId;

    @ApiModelProperty("商户名称")
    private String merchantName;

    @ApiModelProperty("商户Logo")
    private String merchantLogo;

    @ApiModelProperty("商品列表")
    private List<OrderGoodsBean> goods;

    @ApiModelProperty("配送类型：1-外卖，2-堂食，3-自取")
    private Integer deliveryType;

    @ApiModelProperty("收货人姓名")
    private String receiverName;

    @ApiModelProperty("收货人电话")
    private String receiverPhone;

    @ApiModelProperty("配送地址")
    private String deliveryAddress;

    @ApiModelProperty("原价")
    private BigDecimal originalPrice;

    @ApiModelProperty("商品总价")
    private BigDecimal totalPrice;

    @ApiModelProperty("配送费")
    private BigDecimal deliveryFee;

    @ApiModelProperty("总打包费（商品打包费累加）")
    private BigDecimal totalPackagingFee;

    @ApiModelProperty("优惠金额")
    private BigDecimal discount;

    @ApiModelProperty("实付金额")
    private BigDecimal actualPay;

    @ApiModelProperty("支付方式ID")
    private Integer paymentMethodId;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("使用的用户优惠券表ID")
    private Integer userCouponId;

    @ApiModelProperty("使用的积分")
    private Integer pointsUsed;

    @ApiModelProperty("积分抵扣金额")
    private BigDecimal pointsDiscount;

    @ApiModelProperty("配送时间类型：1-尽快送达，2-预约")
    private Integer deliveryTimeType;

    @ApiModelProperty("预约时间，当 delivery_time_type 为 2 时有效")
    private String scheduleTime;
}